<template>
  <div class="mk-footer">
    <div class="footer-box">
      <div class="copyright">
        <img src="../assets/copyright.png" alt>
      </div>
      <div class="about">
        <h3>关于我们</h3>
        <p>绿馨环保是一家从事室内空气治理的高科技环保企业，专业致力于室内空气检测治理，装修除甲醛，空气净化等。绿馨环保全系产品均是自主研发、自主生产，国内首创以植物提取液为核心的复合协同根治技术，针对室内污染物分类，集成创新，从源头彻底根除。</p>
      </div>
      <div class="contact">
        <h3>联系方式</h3>
        <p>全国品牌运营中心：中国·合肥</p>
        <p>研发、生产、销售分中心：中国·杭州</p>
        <p>地址：合肥市庐阳区清河路19号依立腾工业园14楼</p>
        <p>电话：0551-63809559/69809550</p>
        <p>全国统一服务电话：4008-691-698</p>
      </div>
      <div class="case">
        <h3>更多精品案例</h3>
        <div>
          <a :href="'/caseDetails/'+item.id" v-for="(item) in footerCases" :title="item.case_name">
            <img :src="'https://cdn1-open.mokyun.com/'+item.case_pic"alt>
          </a>
        </div>
      </div>
      <div class="qrcode">
        <img src="../assets/qrcode.png" alt>
      </div>
    </div>
  </div>
</template>

<script>
import getData from "../api/getInfo";
export default {
  data() {
    return {
      footerCases: []
    };
  },
  mounted() {
    this.getCases();
  },
  methods: {
    //获取案例展示
    getCases() {
      getData
        .getCases()
        .then(res => {
          this.footerCases = res.data;
        })
        .catch(e => {
          console.log(e);
        });
    },
    // //案例详情
    // goCaseDetails(case_id) {
    //   this.$router.push({
    //     path: `/caseDetails/${case_id}`
    //   });
    // }
  }
};
</script>

<style scoped lang="scss">
.mk-footer {
  width: 100%;
  height: 327px;
  background: #30313a;
  display: flex;
  justify-content: center;
  .footer-box {
    width: 1200px;
    height: 100%;
    padding-top: 70px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    .copyright {
      width: 112px;
      height: 112px;
      border-radius: 50%;
      background-color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 38px;
      img {
        width: 60%;
        height: 60%;
      }
    }
    .about {
      color: #999;
      font-size: 10px;
      display: flex;
      flex-direction: column;
      h3 {
        font-size: 18px;
        color: #fff;
        margin-bottom: 27px;
      }
      p {
        margin: 0;
        width: 180px;
        line-height: 18px;
      }
    }
    .contact {
      color: #999;
      font-size: 10px;
      display: flex;
      flex-direction: column;
      h3 {
        font-size: 18px;
        color: #fff;
        margin-bottom: 27px;
      }
      p {
        margin: 0;
        // width: 180px;
        // line-height: 30px;
      }
    }
    .case {
      width: 330px;
      h3 {
        font-size: 18px;
        color: #fff;
        margin-bottom: 27px;
      }
      div {
        display: flex;
        flex-wrap: wrap;
        max-width: 324px;
        max-height: 162px;
        overflow: hidden;
        img {
          width: 75px;
          height: 75px;
          margin-right: 6px;
          margin-bottom: 6px;
          cursor: pointer;
        }
      }
    }
    .qrcode {
      margin-top: 27px;
      img {
        width: 135px;
        height: 135px;
      }
    }
  }
}
</style>


